home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr26
/
netprog.zip
/
NETPROG.TAR
/
asyncio
/
oldcat.c
< prev
Wrap
C/C++ Source or Header
|
1989-12-17
|
268b
|
21 lines
/*
* Copy standard input to standard output.
*/
#define BUFFSIZE 4096
main()
{
int n;
char buff[BUFFSIZE];
while ( (n = read(0, buff, BUFFSIZE)) > 0)
if (write(1, buff, n) != n)
err_sys("write error");
if (n < 0)
err_sys("read error");
exit(0);
}